import 'dart:convert';
import 'package:flutter_app/generated/json/base/json_field.dart';
import 'package:flutter_app/generated/json/problem_by_code_entity.g.dart';
import 'package:image_pickers/image_pickers.dart';

import 'file_path_entity.dart';

@JsonSerializable()
class ProblemByCodeEntity {
  String? collectId;
  String? content;
  String? createBy;
  String? createName;
  String? createTime;
  String? groupId;
  String? id;
  String? isSelf; // 是否自己上报0否1是
  String? orgId;
  String? orgName;
  String? problemCode;
  String? problemCodeName;
  String? problemId;
  String? status;
  List<FilePathEntity>? fileList; // 网络文件
  List<Media>? imagesList; // 本地文件
  // 2022年12月27日 13:35:45添加 备注
  String? remark;

  ProblemByCodeEntity();

  factory ProblemByCodeEntity.fromJson(Map<String, dynamic> json) => $ProblemByCodeEntityFromJson(json);

  Map<String, dynamic> toJson() => $ProblemByCodeEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
